package com.jmlee.mapper;

import com.jmlee.pojo.AItemComments;
import com.jmlee.pojo.AOrderItems;
import com.jmlee.pojo.AOrders;
import com.jmlee.pojo.Users;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AOrderMapper {

    /**
     * 订单查询
     */


    int selectOrderListCount(AOrders AOrders,Long  id );

    List<AOrders> selectOrderList(AOrders AOrders, RowBounds rowBounds,Long  id );

    int selectShopOrderListCount(AOrders AOrders);

    List<AOrders> selectShopOrderList(AOrders AOrders, RowBounds rowBounds );
    //提交评价
    Integer insertSubmit(AItemComments aItemComments);
    /**
     * 根据id查询用户
     *
     * @param id
     * @return
     */
    Users queryUsersById(Long id);

    /**
     * 根据id查询商品信息
     *
     * @param id
     * @return
     */
    List<AOrderItems> queryOrderById(Long id);

    /**
     * 根据id查询评价信息
     *
     * @param id
     * @return
     */
    AItemComments queryCommentsById(Long id);

    /**
     * 根据id查询退款信息
     *
     * @param id
     * @return
     */
    AOrders queryRefundById(Long id);
}
